<?php

use yii\helpers\Html;
?>
<div ng-view="" class="ng-scope">
    <div data-ng-controller="contractDredgeCtrl" class="ng-scope">
        <div class="table-header clearfix ng-scope">
            <span class="fl lh30 f14 ng-binding">消息查看</span>
        </div>
        <form class="form-horizontal ng-pristine ng-valid">
            <div class="form-group mt10">
                <span class="col-sm-3 control-label ml15">
                    队列名称
                </span>
                <div class="col-sm-5">
                    <?php echo $model->redis_key; ?>
                </div>
            </div>
            <div class="form-group mt10">
                <span class="col-sm-3 control-label ml15">
                    队列数据
                </span>
                <div class="col-sm-5">
                    <?php echo $model->redis_data; ?>
                </div>
            </div>
            <div class="form-group mt10">                
                <span class="col-sm-3 control-label ml15">
                    重试次数
                </span>
                <div class="col-sm-5">
                    <?php echo $model->retry_count; ?>
                </div>
            </div>
            <div class="form-group mt10">                
                <span class="col-sm-3 control-label ml15">
                    错误说明
                </span>
                <div class="col-sm-5">
                    <?php echo $model->error_msg; ?>
                </div>
            </div>
            <div class="form-group mt10">                
                <span class="col-sm-3 control-label ml15">
                    状态
                </span>
                <div class="col-sm-5">
                    <?php echo $model->statusFmt(); ?>
                </div>     
            </div>
            <div class="form-group mt10">                
                <span class="col-sm-3 control-label ml15">
                    创建时间
                </span>
                <div class="col-sm-5">
                    <?php echo $model->create_date; ?>
                </div>       
            </div>
            <div class="form-group mt10">                
                <span class="col-sm-3 control-label ml15">
                    更新时间
                </span>
                <div class="col-sm-5">
                    <?php echo $model->update_date; ?>
                </div>
            </div>
            <div class="form-group">
                <div class="ml35 mt15">
                    <?php if ($model->canRetry()): ?>
                        <?php echo Html::a('重试', '?r=/monitor/monitor-pool/retry&id=' . $model->id, ['class' => 'btn btn-default ng-scope']); ?>
                    <?php endif; ?>
                    <?php echo Html::a('返回列表', '?r=/monitor/monitor-pool/index', ['class' => 'btn btn-yellow']); ?>
                </div>
            </div>
        </form>
    </div>
</div>